package com.zhang.publicproject.module.activity;

import android.content.Context;
import android.graphics.Color;
import android.os.Bundle;
import android.support.design.widget.TabLayout;
import android.support.v4.view.ViewPager;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;

import com.zhang.publicproject.R;
import com.zhang.publicproject.common.base.BaseActivity;
import com.zhang.publicproject.common.utils.StatusBarUtil;

import java.util.Random;

public class MainActivity extends BaseActivity {

    private TabLayout mTabLayout;
    private ViewPager mViewPager;
    private ImageView mIv;
    private RelativeLayout mView_offet;


    @Override
    public void initParms(Bundle parms) {
        // setSteepStatusBar(true);
    }

    @Override
    public int bindLayout() {
        return R.layout.activity_main;
    }

    @Override
    public void initView(View view) {
     /*   mViewPager = (ViewPager) findViewById(R.id.viewPager);
        mTabLayout = (TabLayout) findViewById(tabLayout);
        mTabLayout.setTabGravity(TabLayout.GRAVITY_FILL);
        mTabLayout.setTabMode(TabLayout.MODE_SCROLLABLE);
        MyFragmentPagerAdapter adapter = new MyFragmentPagerAdapter(getSupportFragmentManager(),this);
        mViewPager.setAdapter(adapter);
        mViewPager.setOffscreenPageLimit(4);
        //TabLayout

        mTabLayout.setupWithViewPager(mViewPager);*/

        //  StatusBarUtil.setTransparent(this);


    }


    @Override
    protected void setStatusBar() {
        Random random = new Random();
        int color = Color.rgb(255, 58, 51);
        StatusBarUtil.setColor(this, color, 0);
    }

    @Override
    protected void hanldeToolbar(ToolbarHelper toolbarHelper) {
        Toolbar toolbar = toolbarHelper.getToolbar();

        toolbarHelper.setText("新科奇啊啊啊", "#ffffff", 16);
        toolbar.setBackgroundColor(Color.parseColor("#ff3a33"));
    }


    @Override
    public void doBusiness(Context mContext) {

    }

    @Override
    public void widgetClick(View v) {

    }


}
